<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/menuAplicacionCompania.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateTblcompaniaTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
           
            <h:form>
                <p:panel id="panel" styleClass="panelCabeza" header="#{bundle.CreateTblcompaniaTitle}">
                    <p:messages id="msgs"/>
                    <h:panelGrid columns="4">
                        <h:outputLabel value="#{bundle.CreateTblcompaniaLabel_codCompania}" for="codCompania" />
                        <p:inputText id="codCompania" value="#{tblcompaniaController.selected.codCompania}" title="#{bundle.CreateTblcompaniaTitle_codCompania}" required="true" requiredMessage="#{bundle.CreateTblcompaniaRequiredMessage_codCompania}"/>
                        <h:outputLabel value="#{bundle.CreateTblcompaniaLabel_nomNomina}" for="nomNomina" />
                        <p:inputText id="nomNomina" value="#{tblcompaniaController.selected.nomNomina}" title="#{bundle.CreateTblcompaniaTitle_nomNomina}" required="true" requiredMessage="#{bundle.CreateTblcompaniaRequiredMessage_nomNomina}"/>
                        <h:outputLabel value="#{bundle.CreateTblcompaniaLabel_nit}" for="nit" />
                        <p:inputText id="nit" value="#{tblcompaniaController.selected.nit}" title="#{bundle.CreateTblcompaniaTitle_nit}" required="true" requiredMessage="#{bundle.CreateTblcompaniaRequiredMessage_nit}"/>
                        <h:outputLabel value="#{bundle.CreateTblcompaniaLabel_objSocial}" for="objSocial" />
                        <p:inputText id="objSocial" value="#{tblcompaniaController.selected.objSocial}" title="#{bundle.CreateTblcompaniaTitle_objSocial}" required="true" requiredMessage="#{bundle.CreateTblcompaniaRequiredMessage_objSocial}"/>
                        <h:outputLabel value="#{bundle.CreateTblcompaniaLabel_direccion}" for="direccion" />
                        <p:inputText id="direccion" value="#{tblcompaniaController.selected.direccion}" title="#{bundle.CreateTblcompaniaTitle_direccion}" />
                        <h:outputLabel value="#{bundle.CreateTblcompaniaLabel_telefono1}" for="telefono1" />
                        <p:inputText id="telefono1" value="#{tblcompaniaController.selected.telefono1}" title="#{bundle.CreateTblcompaniaTitle_telefono1}" />
                        <h:outputLabel value="#{bundle.CreateTblcompaniaLabel_telefono2}" for="telefono2" />
                        <p:inputText id="telefono2" value="#{tblcompaniaController.selected.telefono2}" title="#{bundle.CreateTblcompaniaTitle_telefono2}" />
                        <h:outputLabel value="#{bundle.CreateTblcompaniaLabel_fax}" for="fax" />
                        <p:inputText id="fax" value="#{tblcompaniaController.selected.fax}" title="#{bundle.CreateTblcompaniaTitle_fax}" />
                        <h:outputLabel value="#{bundle.CreateTblcompaniaLabel_aaereo}" for="aaereo" />
                        <p:inputText id="aaereo" value="#{tblcompaniaController.selected.aaereo}" title="#{bundle.CreateTblcompaniaTitle_aaereo}" />
                        <h:outputLabel value="#{bundle.CreateTblcompaniaLabel_email}" for="email" />
                        <p:inputText id="email" value="#{tblcompaniaController.selected.email}" title="#{bundle.CreateTblcompaniaTitle_email}" />
                        <h:outputLabel value="#{bundle.CreateTblcompaniaLabel_numCuenta}" for="numCuenta" />
                        <p:inputText id="numCuenta" value="#{tblcompaniaController.selected.numCuenta}" title="#{bundle.CreateTblcompaniaTitle_numCuenta}" required="true" requiredMessage="#{bundle.CreateTblcompaniaRequiredMessage_numCuenta}"/>
                        <h:outputLabel value="#{bundle.CreateTblcompaniaLabel_salMinimo}" for="salMinimo" />
                        <p:inputText id="salMinimo" value="#{tblcompaniaController.selected.salMinimo}" title="#{bundle.CreateTblcompaniaTitle_salMinimo}" required="true" requiredMessage="#{bundle.CreateTblcompaniaRequiredMessage_salMinimo}"/>
                        <h:outputLabel value="#{bundle.CreateTblcompaniaLabel_subTransporte}" for="subTransporte" />
                        <p:inputText id="subTransporte" value="#{tblcompaniaController.selected.subTransporte}" title="#{bundle.CreateTblcompaniaTitle_subTransporte}" required="true" requiredMessage="#{bundle.CreateTblcompaniaRequiredMessage_subTransporte}"/>
                        <h:outputLabel value="#{bundle.CreateTblcompaniaLabel_diasClave}" for="diasClave" />
                        <p:inputText id="diasClave" value="#{tblcompaniaController.selected.diasClave}" title="#{bundle.CreateTblcompaniaTitle_diasClave}" />
                        <h:outputLabel value="#{bundle.CreateTblcompaniaLabel_periodoPago}" for="periodoPago" />
                        <p:selectOneMenu id="periodoPago" value="#{tblcompaniaController.selected.periodoPago}"  required="true" requiredMessage="#{bundle.CreateTblcompaniaRequiredMessage_periodoPago}">
                            <f:selectItems value="#{tblperiodopagoController.itemsAvailableSelectOne}"/>
                        </p:selectOneMenu>
                        <h:outputLabel value="#{bundle.CreateTblcompaniaLabel_pais}" for="pais" />
                        <p:selectOneMenu id="pais" value="#{tblcompaniaController.selected.pais}"  required="true" requiredMessage="#{bundle.CreateTblcompaniaRequiredMessage_pais}">
                            <f:selectItems value="#{tblpaisesController.itemsAvailableSelectOne}"/>
                        </p:selectOneMenu>
                        <h:outputLabel value="#{bundle.CreateTblcompaniaLabel_impuesto}" for="impuesto" />
                        <p:selectOneMenu id="impuesto" value="#{tblcompaniaController.selected.impuesto}"  required="true" requiredMessage="#{bundle.CreateTblcompaniaRequiredMessage_impuesto}">
                            <f:selectItems value="#{tblimpuestosController.itemsAvailableSelectOne}"/>
                        </p:selectOneMenu>
                        <h:outputLabel value="#{bundle.CreateTblcompaniaLabel_departamento}" for="departamento" />
                        <p:selectOneMenu id="departamento" value="#{tblcompaniaController.selected.departamento}"  required="true" requiredMessage="#{bundle.CreateTblcompaniaRequiredMessage_departamento}">
                            <f:selectItems value="#{tbldepartamentosController.itemsAvailableSelectOne}"/>
                        </p:selectOneMenu>
                        <h:outputLabel value="#{bundle.CreateTblcompaniaLabel_ciudad}" for="ciudad" />
                        <p:selectOneMenu id="ciudad" value="#{tblcompaniaController.selected.ciudad}"  required="true" requiredMessage="#{bundle.CreateTblcompaniaRequiredMessage_ciudad}">
                            <f:selectItems value="#{tblciudadesController.itemsAvailableSelectOne}"/>
                        </p:selectOneMenu>
                        <h:outputLabel value="#{bundle.CreateTblcompaniaLabel_banco}" for="banco" />
                        <p:selectOneMenu id="banco" value="#{tblcompaniaController.selected.banco}"  required="true" requiredMessage="#{bundle.CreateTblcompaniaRequiredMessage_banco}">
                            <f:selectItems value="#{tblbancosController.itemsAvailableSelectOne}" />
                        </p:selectOneMenu>
                    </h:panelGrid>
                    
                    <p:commandButton action="#{tblcompaniaController.create}" update="panel" value="#{bundle.CreateTblcompaniaSaveLink}" />
                   
                    <p:commandButton action="#{tblcompaniaController.prepareList}" value="#{bundle.CreateTblcompaniaShowAllLink}" immediate="true"/>
                    </p:panel>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
